#ifndef MESSAGE2_H
#define MESSAGE2_H
#include "types.h"
#include "message.h"


class MessageInfoResponse : public IMessage
{
public:
    MessageInfoResponse();
    MessageInfoResponse(const InfoData &info);
    virtual ~MessageInfoResponse();
    inline InfoData getInfo() {return m_Info;}

private:
    uint32_t getBufferSize() const;
    void serializeContent(uint8_t **bufPtr) const;
    void deserializeContent(uint8_t **bufPtr);

    InfoData m_Info;
    uint8_t  m_msgid = 2;
};

#endif // MESSAGE2_H
